<!DOCTYPE html>
<html>
<head>
    <title>Function Example 2</title>
    <script type="text/javascript">
        function sum(num1, num2) {
            return num1 + num2;
        }

        var result = sum(5, 10);
        alert(result);
    </script>
</head>
<body>

</body>
</html>